define(function(require, exports){
	var pubjs = require('pubjs');
	// var $ = require('jquery');
	var grid  = require('@base/highGrid');
	// var util = require('util');

	var WhiskyGrid = grid.base.extend({
		init: function(config){
			config = pubjs.conf(config, {
					url: 'whisky/list',
					param: {
						'IsDeleted': 0,
						'order': 'back_pageviews|-1,clicks|-1'
					},
					cols: [
						{name:'_id',text:"ID", sort: true, width: 60, align: 'center'},
						'WhiskyNameWithThumb'
					],
					subs: ['sweety', 'mediaAndAd', 'period', 'region', 'client', 'campaign', 'product'],
					tab: pubjs.config('metricsGroup/whisky/tabs'),
					default_metrics : pubjs.config('metricsGroup/whisky/metrics'),
					reqType: 'websocket',
					gridName: 'whisky'
				}
			);
			this.Super('init', arguments);
		}
	})
	exports.base = WhiskyGrid;

});